﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class yuan
    {
        private int zhuang;
        private double r;
        private int kuan;
        
        public int Zhuang { get; set; }
        public double R { get; set; }
        public int Kuan { get; set; }
        public int Say(int zhuang,int kuan) {

            return zhuang*kuan;
        }
        public double Say(double r)
        {
            
            return r * r * 3.14;
        }
    }
    class yuangong {
        private int gong;
        private string name;
        private string xinxi;
        public int Gong {
            get { return this.gong; } 
            set {this.gong = value; }
        }
        public string Name {
            get { return this.name; }
            set { this.name = value; }
        }
        public string Xinxi
        {
            get { return this.xinxi; }
            set { this.xinxi = value; }
        }
        public yuangong(int gong,string name,string xinxi) {
            name = name;
            gong = gong;
            xinxi = xinxi;

        }
        public yuangong()
        {
            this.name = name;
            this.gong = gong;
            this.xinxi = xinxi;
        }
    }
    class jisuanfangfa
    {
        private int a;
        private int b;
        private double c;
        private double d;
        private string e;
        private string f;

        public int add(int a, int b)
        {
            return a + b;
        }
        public double add(double c, double d)
        {
            return a + b;
        }
        public string add(string e, string f)
        {
            return a + b+"";
        }
        public int add(int a)
        {
            int sum = 0;
            for (int i = 1; i < a; i++)
            {
                sum = sum + i;
            }
            return sum;
        }
    }

}
